--
-- tbcore 1.0 build script 
--

---------------------------------------------------------------------------

workspace "All"
  platforms { "x86", "x86_64" }
  configurations { "debug", "release" }
  location "build"

-----------------------------------------------------------------------

project "SafeObject"
  kind "SharedLib"
  language "C++"
  targetdir "bin/%{cfg.platform}/%{cfg.buildcfg}"
  objdir "%{cfg.location}/%{cfg.platform}/%{cfg.buildcfg}"
  
  defines 
  {
    "WIN32",
  }
  
  filter { "platforms:x86" }
    architecture "x86"
  filter { }
  
  filter { "platforms:x86_64" }
    architecture "x86_64"
  filter { }
  
  filter { "configurations:Debug" }
    defines { "DEBUG", "_DEBUG"}
    runtime "Debug"
  filter { }
    
  filter "configurations:release"
    defines { "NDEBUG" }
    optimize "Speed"
    runtime "Release"
  filter {}
  
  files 
  { 
    "./src/**.hpp", 
    "./src/**.cpp", 
    "./src/**.cc", 
    "./src/**.asm", 
    "./include/**.hpp",
  }

  libdirs 
  { 
    "./3rd/lib/%{cfg.platform}/%{cfg.buildcfg}"
  }
    
  includedirs 
  {
    "$(3rd)/boost/include",
    "$(3rd)/tbb/include",
  }

---------------------------------------------------------------------------